Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRGetConstraints

You can use the QTVRGetConstraints function to get the current constraints of a movie.

OSErr QTVRGetConstraints (
                     QTVRInstance qtvr,
                     UInt16kind,
                     float*minValue,
                     float*maxValue);
qtvr
An instance of a QuickTime VR movie.
kind
The type of constraints to be returned. See "Constraint Types" for a description of the available types of constraints.
minValue
On entry, a pointer to a floating-point value. On exit, the current minimum constraint of the specified type is copied into that value.
maxValue
On entry, a pointer to a floating-point value. On exit, the current maximum constraint of the specified type is copied into that value.
function result
A result code.

DESCRIPTION

The QTVRGetConstraints function returns, in the floating-point values pointed to by the minValue and maxValue parameters, the current minimum and maximum constraints of the type specified by the kind parameter.

The values returned by QTVRGetConstraints are unaffected by the current control settings.

SEE ALSO

Use QTVRSetConstraints (next) to set a movie's minimum and maximum constraints.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |